package com.wmlt.service;

import com.wmlt.entity.Article;
import com.wmlt.entity.User;

import java.util.List;

public interface UserService {
    //QQ注册
    public User qqRegister(User user);
    //手机号注册或登陆
    public User mobileLoginAndRegister(String mobile);
    //获取所有用户人数
    public int getUserNumber();

    //后台登陆
    public User adminLogin(String userName,String password);
    //获取所有用户
    public List<User> getAllUserInfo(String username, int page, int limit);
    //删除用户
    public int deleteUserInfo(int[] userId);

    //根据用户id查询用户信息
    public User getUserInfoByUserId(String userId);
    //修改密码
    public int changePassword(String userId,String password);
    //根据文章id查询数据
    public List<Article> getUserIdInfoByUser(String articleId);

    //用户修改信息
    public  int updateUserManager(String userId,User user);

    //账号密码登陆
    public User mobileAndPassLogin(String mobile,String pass);

    //增加cb
    public int addUserCb(String userId,int cb);
    //获取用户cb
    public int getUserCbByUserId(String userId);
}
